<script lang="ts">
import {defineComponent, PropType} from 'vue'

export default defineComponent({
  name: "RadioGroup",
  props: {
    options: {
      type: Array as PropType<Array<{ label: string, value: string | number, disabled?: boolean }>>
    }
  }
})
</script>
<template>
  <el-radio-group v-bind="$attrs">
    <el-radio-button v-for="(item,index) in options" :key="index" :label="item.label" :value="item.value" :disabled="item?.disabled===true"/>
  </el-radio-group>
</template>